package com.vdong.common.oauth.common.enums;


import com.vdong.common.oauth.common.pojo.ResultCodeInter;

public enum ResultCodeEnum implements ResultCodeInter {
    //200, "成功"
    SUCCESS(200, "成功"),
    FAIL_AUTH(403, "尚未登录或无权访问"),
    FAIL_AUTH_PASSWORD_ERROR(401, "账号或密码错误"),
    FAIL(500, "失败"),
    FAIL_PARAM(600, "参数异常"),;

    private Integer code;

    private String message;

    ResultCodeEnum(Integer code, String message) {

        this.code = code;
        this.message = message;

    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
